package com.luoran.bartalks.entity.biz;

import java.io.Serializable;
import java.util.Date;

import org.beetl.sql.core.annotatoin.AssignID;
import org.beetl.sql.core.annotatoin.ColumnIgnore;

import com.luoran.bartalks.entity.BaseInfo;

/**
 * 编码规则
 */
public class BtCodingRule extends BaseInfo implements Serializable {

	private static final long serialVersionUID = 1L;

	public BtCodingRule() {
	}

	/**
	 * 主键id
	 */
	@AssignID("uuid")
	public String getId() {
		return getString("id");
	}

	public void setId(String id) {
		set("id", id);
	}

	/**
	 * 当前登录用户对应的公司ID
	 */
	public String getCompanyId() {
		return getString("companyId");
	}

	public void setCompanyId(String companyId) {
		set("companyId", companyId);
	}

	/**
	 * 单据类型
	 */
	public String getBillType() {
		return getString("billType");
	}

	public void setBillType(String billType) {
		set("billType", billType);
	}

	/**
	 * 规则描述
	 */
	public String getRuleDesc() {
		return getString("ruleDesc");
	}

	public void setRuleDesc(String ruleDesc) {
		set("ruleDesc", ruleDesc);
	}

	/**
	 * 编码前缀
	 */
	public String getCodingPrefix() {
		return getString("codingPrefix");
	}

	public void setCodingPrefix(String codingPrefix) {
		set("codingPrefix", codingPrefix);
	}

	/**
	 * 编码后缀
	 */
	public String getCodingSuffix() {
		return getString("codingSuffix");
	}

	public void setCodingSuffix(String codingSuffix) {
		set("codingSuffix", codingSuffix);
	}

	/**
	 * 创建规则时的日期字符串的格式.3种选其一种(年月日,年-月-日,年/月/日)
	 */
	public String getDateTime() {
		return getString("dateTime");
	}

	public void setDateTime(String dateTime) {
		set("dateTime", dateTime);
	}

	/**
	 * 序列长度
	 */
	public Integer getSequenceLength() {
		return getInteger("sequenceLength");
	}

	public void setSequenceLength(Integer sequenceLength) {
		set("sequenceLength", sequenceLength);
	}

	/**
	 * 序列起步值
	 */
	public Integer getSequenceBeginValue() {
		return getInteger("sequenceBeginValue");
	}

	public void setSequenceBeginValue(Integer sequenceBeginValue) {
		set("sequenceBeginValue", sequenceBeginValue);
	}

	/**
	 * 序列步长值
	 */
	public Integer getStepLengthValue() {
		return getInteger("stepLengthValue");
	}

	public void setStepLengthValue(Integer stepLengthValue) {
		set("stepLengthValue", stepLengthValue);
	}

	/**
	 * 记录当前使用的编码规则的当前序列值
	 */
	public Integer getSequenceValue() {
		return getInteger("sequenceValue");
	}

	public void setSequenceValue(Integer sequenceValue) {
		set("sequenceValue", sequenceValue);
	}

	/**
	 * 创建时间
	 */
	@ColumnIgnore(insert = false, update = true)
	public Date getCreateTime() {
		return getDate("createTime");
	}

	public void setCreateTime(Date createTime) {
		set("createTime", createTime);
	}

	/**
	 * 更新时间
	 */
	public Date getUpdateTime() {
		return getDate("updateTime");
	}

	public void setUpdateTime(Date updateTime) {
		set("updateTime", updateTime);
	}

	/**
	 * 编码规则的状态.0启用,1停用
	 */
	public Integer getRuleStatus() {
		return getInteger("ruleStatus");
	}

	public void setRuleStatus(Integer ruleStatus) {
		set("ruleStatus", ruleStatus);
	}
	
	/**
	 * 最大时间戳(时间排序)
	 */
	public Integer getTimeStamp() {
		return getInteger("timeStamp");
	}

	public void setTimeStamp(Integer timeStamp) {
		set("timeStamp", timeStamp);
	}


}
